package com.kevin.designpattern.chain_responsibility;

/**
 * 部门经理类
 */
public class ManagerLeader extends Handler {

    public ManagerLeader() {
        super(Handler.NUM_ONE, Handler.NUM_THREE);
    }

    @Override
    protected void handlerLeave(LeaveRequest leaveRequest) {
        System.out.println(leaveRequest.getName() + "请假" + leaveRequest.getNum() + "天" + leaveRequest.getContent());
        System.out.println("部门经理审批：同意");
    }
}
